package com.trickytriad.model
{	
		
	/**
	 * PlayerData class.
	 * 
	 * Model for the player information.
	 **/
	[Bindable]
	public class PlayerData
	{		
		// Data from the database.
		private var _facebook_uid:uint, _gold:uint, _win:uint, _loss:uint, _experience:uint;
		private var _isnew:Boolean;		
		
		// Facebook-specific information
		private var _firstname:String, _lastname:String;
		
		public function PlayerData(in_uid:uint, in_gold:uint, in_win:uint, in_loss:uint, in_experience:uint, 
			in_isnew:Boolean, in_firstname:String = "", in_lastname:String = "", in_joindate:String="")
		{
			this._facebook_uid = in_uid;
			this._gold = in_gold;
			this._win = in_win;
			this._loss = in_loss;
			this._experience = in_experience;
			this._isnew = in_isnew;
			this._firstname = in_firstname;
			this._lastname = in_lastname;
		}
		
		public function get FacebookID () : uint  { return _facebook_uid; }
		public function get Gold () : uint        { return _gold; } 
		public function get Win () : uint         { return _win; }
		public function get Loss () : uint        { return _loss; }
		public function get Experience () : uint  { return _experience; }
		public function get IsNew (): Boolean     { return _isnew; }
		public function get Firstname () : String { return _firstname; }
		public function get Lastname () : String  { return _lastname; }		
	}
}